#!/bin/bash

SERVER_LIST="172.22.32.107 172.22.32.108 172.22.32.109 172.22.32.110 172.22.32.111 172.22.32.112 172.22.32.113"
count=1
for SERVER in ${SERVER_LIST}; do
    echo "current server is $SERVER"
    count=$[count+1]
    ssh ${SERVER} "mkdir -p /data/hadoop/zookeeper-*;echo $count > /data/hadoop/zk_data/myid"
done